package com.iplant.aps.service.apsenum.aps;

public enum APSInstallCheckMode {
    /**
     * ==默认
     */
    Default(0, "默认"),
    /**
     * ==检查并提示
     */
    OnlyCheck(1, "检查并提示"),
    /**
     * ==检查并影响本工位转序
     */
    CheckChange(2, "检查并影响本工位转序"),
    /**
     * ==检查并影响上工位转序
     */
    CheckChangePrev(3, "检查并影响上工位转序"),
    /**
     * APP
     */
    Uncheck(4, "不检查冲突");

    private int value;
    private String label;

     APSInstallCheckMode(int value, String label) {
        this.value = value;
        this.label = label;
    }

    /**
     * 通过 value 的数值获取枚举实例
     */
    public static APSInstallCheckMode getEnumType(int val) {
        for (APSInstallCheckMode type : APSInstallCheckMode.values()) {
            if (type.getValue() == val) {
                return type;
            }
        }
        return null;
    }

    public int getValue() {
        return value;
    }

    public String getLabel() {
        return label;
    }
}
